package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.TableStyleMapper;
import com.xdf.zipperdye.model.TableStyle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:TableStyleServiceImpl
 * @Description:TODO
 * @Author:chanchaw
 * @Date:2020-01-07 14:13
 * @Version:1.0
 **/
@Service
public class TableStyleServiceImpl implements TableStyleService {

    @Autowired
    private TableStyleMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(TableStyle record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(TableStyle record) {
        return dao.insertSelective(record);
    }

    @Override
    public TableStyle selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(TableStyle record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TableStyle record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<TableStyle> selectByTableName(String tableName) {
        return dao.selectByTableName(tableName);
    }

    @Override
    public List<TableStyle> selectAll() {
        return dao.selectAll();
    }
}
